# Maintainer: j.r <j.r@jugendhacker.de>
pkgname=libstrophe
pkgver=0.12.1
pkgrel=0
pkgdesc="Simple, lightweight C library for writing XMPP clients"
url="https://strophe.im/libstrophe/"
arch="all"
license="GPL-3.0-only MIT"
makedepends="expat-dev openssl-dev"
subpackages="$pkgname-dev"
source="https://github.com/strophe/libstrophe/releases/download/$pkgver/libstrophe-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
15c910da092a186452da1204b58704ca1ff33120daa52744ddde8e2a43ffb22aaa680bdf7028bb90ea6c766988c03310a7b4b2687edcc162dfab42dc9ae76048  libstrophe-0.12.1.tar.gz
"
